package cn.itsource.wechart.mapper;

import cn.itsource.wechart.pojo.domain.WxUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

public interface WeChartMapper extends BaseMapper<WxUser> {
    @Select("select * from t_wxuser where openid = #{openid}")
    WxUser  findByOpenid(String openid);
    void updateUserIdByOenid(@Param("userId") Long userId, @Param("openid") String openid);
}
